code: def _feature_metadata_from_dict(feature_meta_dict):
      """Create a FeatureMetadata from a dictionary.
  
      :param feature_meta_dict: The dictionary to create the FeatureMetadata
          from.
      :type feature_meta_dict: dict
      :return: The FeatureMetadata created from the dictionary.
      :rtype: FeatureMetadata
      """
      return FeatureMetadata(
          identity_feature_name=feature_meta_dict[
              _IDENTITY_FEATURE_NAME
          ],
          datetime_features=feature_meta_dict[_DATETIME_FEATURES],
          time_series_id_features=feature_meta_dict[
              _TIME_SERIES_ID_FEATURES
          ],
          categorical_features=feature_meta_dict[_CATEGORICAL_FEATURES],
          dropped_features=feature_meta_dict[_DROPPED_FEATURES],
      )
  
imports: import json
  import logging
  import pickle
  import warnings
  from enum import Enum
  from pathlib import Path
  from typing import Any, List, Optional, Union
  import numpy
  import pandas
  from ml_wrappers import wrap_model
  from erroranalysis._internal.cohort_filter import FilterDataWithCohortFilters
  from raiutils.data_processing import convert_to_list, serialize_json_safe
  from raiutils.models import SKLearn, is_classifier
  from responsibleai._interfaces import Dataset, RAIInsightsData
  from responsibleai._internal.constants import ManagerNames, Metadata, SerializationAttributes
  from responsibleai.exceptions import UserConfigValidationException
  from responsibleai.feature_metadata import FeatureMetadata
  from responsibleai.rai_insights.rai_base_insights import RAIBaseInsights
  from responsibleai_text.common.constants import ModelTask
  from responsibleai_text.managers.error_analysis_manager import ErrorAnalysisManager
  from responsibleai_text.managers.explainer_manager import ExplainerManager
  from responsibleai_text.utils.feature_extractors import extract_features, get_text_columns
label_desc: Use image node_id 1 for calling a global function with example usage: _feature_metadata_from_dict(feature_meta_dict) and returns: FeatureMetadata