code: def find_nested_field_path(
      field_name: str, mapping_definition: Dict[str, Any]
  ) -> Optional[str]:
      """
      Given a field name, find the nested path if any related to field name
      definition in provided mapping definition
  
      Parameters
      ----------
      field_name:
          The field name
      mapping_definition:
          A mapping definition where field name is defined
  
      Returns
      -------
          The found nested path if any, None otherwise
      """
  
      def build_flatten_properties_map(
          properties: Dict[str, Any], prefix: str = ""
      ) -> Dict[str, Any]:
          results = {}
          for prop_name, prop_value in properties.items():
              if prefix:
                  prop_name = f"{prefix}.{prop_name}"
              if "type" in prop_value:
                  results[prop_name] = prop_value["type"]
              if "properties" in prop_value:
                  results.update(
                      build_flatten_properties_map(
                          prop_value["properties"], prefix=prop_name
                      )
                  )
          return results
  
      properties_map = build_flatten_properties_map(mapping_definition)
      for prop in properties_map:
          if properties_map[prop] == "nested" and field_name.startswith(
              prop
          ):
              return prop
      return None
  
imports: from enum import Enum
  from typing import Any, Dict, List, Optional, Type, Union
  from argilla.server.commons.models import TaskStatus
  from argilla.server.daos.backend.mappings.helpers import mappings
  from argilla.server.pydantic_v1 import BaseModel
label_desc: Use image node_id 3 for calling a global function with example usage: find_nested_field_path(field_name, mapping_definition) and returns: None, results, prop