class_docstr: Class representing a model in the model registry.
  
  A Model object is usually obtained from :func:`determined.experimental.client.create_model`
  or :func:`determined.experimental.client.get_model`. It contains methods for model
  versions and metadata.
class_docstr_tok: ["Class","representing","a","model","in","the","model","registry",".","A","Model","object","is","usually","obtained","from",":","func",":","`","determined.experimental.client.create_model","`","or",":","func",":","`","determined.experimental.client.get_model","`",".","It","contains","methods","for","model","versions","and","metadata","."]
docstr: Removes user-defined metadata from the model. Any top-level keys that
  appear in the ``keys`` list are removed from the model.
  
  Arguments:
      keys (List[str]): Top-level keys to remove from the model metadata.
docstr_tok: ["Removes","user-defined","metadata","from","the","model",".","Any","top-level","keys","that","appear","in","the","``","keys","``","list","are","removed","from","the","model",".","Arguments",":","keys","(","List","[","str","]",")",":","Top-level","keys","to","remove","from","the","model","metadata","."]
code: def remove_metadata(self, keys: List[str]) -> None:
      """
      Removes user-defined metadata from the model. Any top-level keys that
      appear in the ``keys`` list are removed from the model.
  
      Arguments:
          keys (List[str]): Top-level keys to remove from the model metadata.
      """
      if not isinstance(keys, Iterable) or not all(
          isinstance(k, str) for k in keys
      ):
          raise ValueError(
              f"remove_metadata() requires a list of strings as input but got: {keys}"
          )
  
      updated_metadata = dict(self.metadata) if self.metadata else {}
      for key in keys:
          if key in updated_metadata:
              del updated_metadata[key]
  
      req = bindings.v1PatchModel(metadata=updated_metadata)
      bindings.patch_PatchModel(
          self._session, body=req, modelName=self.name
      )
  
      self.metadata = updated_metadata
  
imports: import datetime
  import enum
  import itertools
  import json
  import warnings
  from typing import Any, Dict, Iterable, List, Optional
  from determined.common import api, util
  from determined.common.api import bindings
  from determined.common.experimental import checkpoint, metrics
  from determined.common.experimental._util import OrderBy
label_desc: Use image node_id 7 for calling the Model obj's underlying member method code with example usage: obj.remove_metadata(keys) without return types