class_docstr: Abstract class for body type objects.
class_docstr_tok: ["Abstract","class","for","body","type","objects","."]
code: def masscenter(self, point):
      if not isinstance(point, Point):
          raise TypeError(
              "The body's center of mass must be a Point object."
          )
      self._masscenter = point
  
file_path: sympy/sympy/physics/mechanics/body_base.py
imports: from abc import ABC, abstractmethod
  from sympy import Symbol, sympify
  from sympy.physics.vector import Point
label_desc: Use image node_id 6 for calling the BodyBase obj's underlying member method code with example usage: obj.masscenter(point) without return types