def METHOD_NAME(
    self,
    data: Union[bytes, JSON],
    url: Optional[List[str]] = None,
) -> None:
    """
    Write matrix data to file.
    If the input data is of type bytes, write the data to file as is.
    Otherwise, convert the data to a Pandas DataFrame and write it to file as a tab-separated CSV.
    If the resulting DataFrame is empty, write an empty bytes object to file.
    Args:
        data: The data to write to file. If data is bytes, it will be written directly to file,
            otherwise it will be converted to a Pandas DataFrame and then written to file.
        url: node URL (not used here).
    """
    self.config.path.parent.mkdir(exist_ok=True, parents=True)
    if isinstance(data, bytes):
        self.config.path.write_bytes(data)
    else:
        df = pd.DataFrame(**data)
        if df.empty:
            self.config.path.write_bytes(b"")
        else:
            df.to_csv(
                self.config.path,
                sep="\t",
                header=False,
                index=False,
                float_format="%.6f",
            )