code: def resolve_input(self, ctx):
      inputs = types.Object()
      fields = ctx.dataset.get_field_schema(flat=True)
      field_keys = list(fields.keys())
      field_selector = types.AutocompleteView()
      for key in field_keys:
          field_selector.add_choice(key, label=key)
  
      inputs.enum(
          "field_name",
          field_keys,
          label="Field to clear",
          view=field_selector,
          required=True,
      )
  
      return types.Property(
          inputs, view=types.View(label="Clear sample field")
      )
  
imports: import os
  import fiftyone
  import fiftyone.core.storage
  import fiftyone.operators
  import fiftyone.operators.types
label_desc: Use image node_id 2 for calling the ClearSampleField obj's underlying member method code with example usage: obj.resolve_input(ctx) and returns: types