code: def _observed_name(field, name):
          
          if MARSHMALLOW_VERSION_INFO[0] < 3:
              # use getattr in case we're running against older versions of marshmallow.
              dump_to = getattr(field, "dump_to", None)
              load_from = getattr(field, "load_from", None)
              return dump_to or load_from or name
          return field.data_key or name
docs: Adjust field name to reflect `dump_to` and `load_from` attributes.
  
          :param Field field: A marshmallow field.
          :param str name: Field name
          :rtype: str