code: def get_name(self, obj):
      if obj.custom_file_name:
          return obj.custom_file_name
  
      # Remove the folder name from the name
      name = obj.experiment_image.name
      name = name.replace("experiment_image/", "")
  
      return name
  
imports: from rest_framework import serializers
  from modelchimp.models.experiment_image import ExperimentImage
label_desc: Use image node_id 1 for calling the ExperimentImageSerializer obj's underlying member method code with example usage: obj.get_name(obj) and returns: name, obj