docstr: Populates the ``metadata`` field of the sample.
  
  Args:
      overwrite (False): whether to overwrite existing metadata
      skip_failures (False): whether to gracefully continue without
          raising an error if metadata cannot be computed
code: def compute_metadata(self, overwrite=False, skip_failures=False):
      """Populates the ``metadata`` field of the sample.
  
      Args:
          overwrite (False): whether to overwrite existing metadata
          skip_failures (False): whether to gracefully continue without
              raising an error if metadata cannot be computed
      """
      fom.compute_sample_metadata(
          self, overwrite=overwrite, skip_failures=skip_failures
      )
  
imports: import os
  from bson import ObjectId
  from fiftyone.core.document import Document, DocumentView
  import fiftyone.core.frame
  import fiftyone.core.frame_utils
  import fiftyone.core.labels
  import fiftyone.core.metadata
  import fiftyone.core.media
  import fiftyone.core.odm
  import fiftyone.core.utils
  from fiftyone.core.singletons import SampleSingleton
label_desc: Use image node_id 13 for calling the _SampleMixin obj's underlying member method code with example usage: obj.compute_metadata(overwrite, skip_failures) without return types