I want to return the layer name to a specific field using Field Calculator, is there a Python code for that?
Thanks in advance
In the "field calculator" no.
But, if you want to fully script something then you can use
Calculate Field (Data Management)—ArcGIS Pro | Documentation
see the code examples for some ideas