class_docstr: Layer to generate mask.
docstr: Creates a GenerateMask layer from its config.
  
  Args:
    config: A Python dictionary, typically the output of `get_config`.
    custom_objects: Optional dictionary mapping names (strings) to custom
      classes or functions to be considered during deserialization.
  
  Returns:
    A GenerateMask layer.
docstr_tok: ["Creates","a","GenerateMask","layer","from","its","config",".","Args",":","config",":","A","Python","dictionary",",","typically","the","output","of","`","get_config","`",".","custom_objects",":","Optional","dictionary","mapping","names","(","strings",")","to","custom","classes","or","functions","to","be","considered","during","deserialization",".","Returns",":","A","GenerateMask","layer","."]
code: def from_config(cls, config, custom_objects=None):
      """Creates a GenerateMask layer from its config.
  
      Args:
        config: A Python dictionary, typically the output of `get_config`.
        custom_objects: Optional dictionary mapping names (strings) to custom
          classes or functions to be considered during deserialization.
  
      Returns:
        A GenerateMask layer.
      """
      config_cp = config.copy()
      config_cp[
          "example_feature_columns"
      ] = deserialize_feature_columns(
          config_cp["example_feature_columns"],
          custom_objects=custom_objects,
      )
      return cls(**config_cp)
  
imports: import six
  import tensorflow.compat.v2
  from tensorflow.python.feature_column import feature_column_lib
  from tensorflow_ranking.python import utils
label_desc: Use image node_id 6 for calling the GenerateMask obj's underlying member method code with example usage: obj.from_config(cls, config, custom_objects) and returns: cls