docstr: Computes Euclidean distance between atoms and a 3D point.
  
  Parameters
  ----------
  xyz : tuple, default: (0.00, 0.00, 0.00)
      X, Y, and Z coordinate of the reference center for the distance
      computation.
  records : iterable, default: ('ATOM', 'HETATM')
      Specify which record sections to consider. For example, to consider
      both protein and ligand atoms, set `records=('ATOM', 'HETATM')`.
      This setting is ignored if `df` is not set to None.
      For downward compatibility, a string argument is still supported
      but deprecated and will be removed in future versions.
  
  Returns
  ---------
  pandas.Series : Pandas Series object containing the Euclidean
      distance between the atoms in the record section and `xyz`.
code: def distance(
      self, xyz=(0.00, 0.00, 0.00), records=("ATOM", "HETATM")
  ):
      """Computes Euclidean distance between atoms and a 3D point.
  
      Parameters
      ----------
      xyz : tuple, default: (0.00, 0.00, 0.00)
          X, Y, and Z coordinate of the reference center for the distance
          computation.
      records : iterable, default: ('ATOM', 'HETATM')
          Specify which record sections to consider. For example, to consider
          both protein and ligand atoms, set `records=('ATOM', 'HETATM')`.
          This setting is ignored if `df` is not set to None.
          For downward compatibility, a string argument is still supported
          but deprecated and will be removed in future versions.
  
      Returns
      ---------
      pandas.Series : Pandas Series object containing the Euclidean
          distance between the atoms in the record section and `xyz`.
  
      """
  
      if isinstance(records, str):
          warnings.warn(
              "Using a string as `records` argument is "
              "deprecated and will not be supported in future"
              " versions. Please use a tuple or"
              " other iterable instead",
              DeprecationWarning,
          )
          records = (records,)
  
      df = pd.concat(objs=[self.df[i] for i in records])
  
      return np.sqrt(
          np.sum(
              df[["x_coord", "y_coord", "z_coord"]].subtract(
                  xyz, axis=1
              )
              ** 2,
              axis=1,
          )
      )
  
imports: from __future__ import annotations
  import os
  import copy
  import gzip
  import warnings
  from string import ascii_uppercase
  from typing import Any, Dict, List, Union
  from warnings import warn
  import numpy
  import pandas
  from looseversion import LooseVersion
  from mmtf import MMTFDecoder, MMTFEncoder, fetch, parse, parse_gzip
  from biopandas.constants import protein_letters_3to1_extended
  from ..pdb.engines import amino3to1dict, pdb_df_columns, pdb_records
label_desc: Use image node_id 16 for calling the PandasMmtf obj's underlying member method code with example usage: obj.distance(xyz, records) and returns: np