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
        )
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
        
fiftyone/core/sample.py