code: def process_derived_datetime_xarray(data, not_found):
      from pandas.api.types import is_datetime64_any_dtype as isdate
  
      extra_vars = []
      extra_coords = []
      for var in not_found:
          if "." in var:
              derived_from = var.split(".")[0]
              if isdate(data[derived_from]):
                  if derived_from in data.coords:
                      extra_coords.append(var)
                  else:
                      extra_vars.append(var)
      not_found = [
          var
          for var in not_found
          if var not in extra_vars + extra_coords
      ]
      return not_found, extra_vars, extra_coords
  
imports: import sys
  from collections.abc import Hashable
  from functools import wraps
  from packaging.version import Version
  from types import FunctionType
  import bokeh
  import numpy
  import pandas
  import param
  import holoviews
label_desc: Use image node_id 22 for calling a global function with example usage: process_derived_datetime_xarray(data, not_found) and returns: not_found,  extra_vars,  extra_coords