code: def test_copy_file(self):
      # Non-LFS file
      self.assertIsNone(
          self.hffs.info(self.hf_path + "/data/text_data.txt")["lfs"]
      )
      self.hffs.cp_file(
          self.hf_path + "/data/text_data.txt",
          self.hf_path + "/data/text_data_copy.txt",
      )
      with self.hffs.open(
          self.hf_path + "/data/text_data_copy.txt", "r"
      ) as f:
          self.assertEqual(f.read(), "dummy text data")
      self.assertIsNone(
          self.hffs.info(self.hf_path + "/data/text_data_copy.txt")[
              "lfs"
          ]
      )
      # LFS file
      self.assertIsNotNone(
          self.hffs.info(self.hf_path + "/data/binary_data.bin")["lfs"]
      )
      self.hffs.cp_file(
          self.hf_path + "/data/binary_data.bin",
          self.hf_path + "/data/binary_data_copy.bin",
      )
      with self.hffs.open(
          self.hf_path + "/data/binary_data_copy.bin", "rb"
      ) as f:
          self.assertEqual(f.read(), b"dummy binary data")
      self.assertIsNotNone(
          self.hffs.info(self.hf_path + "/data/binary_data_copy.bin")[
              "lfs"
          ]
      )
  
imports: import datetime
  import unittest
  from typing import Optional
  from unittest.mock import patch
  import fsspec
  import pytest
  from huggingface_hub.hf_file_system import HfFileSystem
  from huggingface_hub.utils import RepositoryNotFoundError, RevisionNotFoundError
  from .testing_constants import ENDPOINT_STAGING, TOKEN
  from .testing_utils import repo_name
label_desc: Use image node_id 14 for calling the HfFileSystemTests obj's underlying member method code with example usage: obj.test_copy_file() without return types